package designPattern.factory.absFactory;


public class BJFactory implements AbsFactory{

    @Override
    public Pizza creatPizza(String orderType) {
        System.out.println("使用的是抽象工厂模式");
        Pizza pizza = null;
        if(orderType.equals("chess")){
            pizza = new BJChessPizza();
        }else if(orderType.equals("pepper")){
            pizza = new BJPeppterPizza();
        }

        return pizza;
    }
}
